﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Content.Action.Edit" Title="编辑动作事件" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
编辑动作事件
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Content/Action/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>事件信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">类型：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_Type"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ActionName" Width="300px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">脚本：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="txt_Hql" Width="800px" Height="50"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    描述：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="txt_Desc" Width="800px" Height="50"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <div class="interval"></div>
    <div class="action_bar" style="text-align:center">
            <asp:Button ID="btn_Test" runat="server" Text="测试脚本语句" OnClick="btn_Test_Click" />
    </div>
    <fieldset>
        <legend>测试结果</legend>
        <table>
            <tr>
                <td class="edit_form_item_title">
                    参数：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txt_Parms" Width="300px"></asp:TextBox>
                    多个参数使用逗号","分隔，如: 12,goods
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title" valign="top">
                    结果：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Result" TextMode="MultiLine" Width="800px" Height="200px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
